package servlet;

import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import java.io.IOException;

/**
 * Author：毕龙
 * Date: 2023/7/27 9:52
 */
@WebServlet(value = {"/datou","/taoling"})
public class Servelet1 implements Servlet {
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        System.out.println("初始化servlet");
    }

    @Override
    public ServletConfig getServletConfig() {
        System.out.println("配置文件");
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("调用服务");
    }

    @Override
    public String getServletInfo() {
        System.out.println("获取信息");
        return null;
    }

    @Override
    public void destroy() {
        System.out.println("销毁servlet对象");
    }
}
